<?php

namespace app\common\model;

use think\Model;

/*新闻*/
class News extends Model
{
    //
    public function getCate()
    {
        return $this->belongsTo('Newscate','pid')->field('title');
    }
}
